﻿<%@ Page Title="【历史开奖】" Language="C#" MasterPageFile="~/APP_Master/MasterPage_Red.master"
    AutoEventWireup="true" CodeFile="history_lottery.aspx.cs" Inherits="history_lottery" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style>
        .lottery_results_ul {
            float: left;
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!--HistoryHeader-->
    <div class="history_header">
        <h2 class="history_logo">
            <%if (type == 1)
                { %>
            <img src="images/red_logo.jpg" />
            <%}
                else if (type == 2)
                { %>

            <img src="images/q2.jpg" />
            <%}
                else if (type == 5)
                { %>

            <img src="images/3Dlogo.jpg" />
            <%} %>
        </h2>
        <div class="lottery_name">
            <h2>
                <%=type==1?"双色球":(type==2?"大乐透":(type==3?"排列三":(type==4?"排列五":(type==5?"福彩3D":(type==6?"七星彩":(type==7?"七乐彩":"暂未说明"))))))%>
            </h2>
            <p>第<b><%=curModelLottery != null?curModelLottery[0].LotteryQS:"000000" %></b>期</p>
            <p>
                奖池：<em><%=Math.Round((curModelLotteryMoney/100000000),2)%></em> 亿 
     <%--   <em><%=Convert.ToInt16(curModelLotteryMoney % 100000000 / 10000)%></em> 万--%>
            </p>
            <div>
                <p>每周二、四、日 21:15 开奖</p>
                <p>本期投注截止<%=curModelLottery != null?curModelLottery[0].openTime.ToString("yy-MM-dd"):DateTime.Now.ToString("yy-MM-dd")%> 19:30</p>
            </div>
        </div>
        <div class="lottery_results">
            <p class="l_r_red">上期开奖号码</p>
            <p>第 <%=curModelLottery != null?curModelLottery[1].LotteryQS:"000000" %> 期 开奖结果</p>
            <ul class="lottery_results_ul">
                <%=bindLotteryNo(curModelLottery != null?curModelLottery[1].LotteryNo:"0,0,0,0,0,0+0")%>
            </ul>
            <%--  <a href="" class="lottery_results_detail">详细&gt;</a>--%>
            <ul class="lottery_results_ul_a">
                <li><a href="movements.aspx">走势图</a></li>
                <li><a href="history_lottery.aspx?type=1" class="l_cur">历史开奖</a></li>
                <li><a href="">玩法介绍</a></li>
            </ul>
        </div>
    </div>
    <!--HistoryHeader-->
    <!--LotterySearch-->
    <div class="lottery_search_box">
        <h2 class="lottery_search_t">历史开奖号码</h2>
        <div class="lottery_search">
            请输入近
        <asp:TextBox ID="qstxt" runat="server" CssClass="l_search"></asp:TextBox>
            <asp:Button ID="seacgBtn" runat="server" Text="查询" CssClass="l_search_btn"
                OnClick="seacgBtn_Click" />
        </div>
    </div>
    <!--LotterySearch-->
    <!--LotteryTitle-->
    <div class="lottery_title">
        <ul class="lottery_top">
            <li class="top01">期数</li>
            <li class="top02">中奖号码</li>
            <li class="top03">总销售额</li>
            <li class="top04">一等奖</li>
            <li class="top05">二等奖</li>
            <li class="top06">三等奖</li>
            <li class="top07">开奖时间</li>
        </ul>
        <ul class="lottery_bottom">
            <li>注数</li>
            <li>金额</li>
            <li>注数</li>
            <li>金额</li>
            <li>注数</li>
            <li>金额</li>
        </ul>
    </div>
    <!--LotteryTitle-->
    <asp:Repeater runat="server" ID="lotteryList">
        <ItemTemplate>
            <dl class="lottery_dl_result">
                <dd class="r01"><%#Eval("LotteryQS") %></dd>
                <dd class="r02">
                    <ul class="lottery_results_ul">
                        <%#bindLotteryNo(Eval("LotteryNo").ToString())%>
                    </ul>
                </dd>
                <dd class="r03"><%#bindTotal(Eval("LotteryQS").ToString())%></dd>
                <dd class="r04"><%#Eval("oneCount")%>注</dd>
                <dd class="r04"><%# bindLebelMoney(Convert.ToDecimal(Eval("oneMoney").ToString()))%></dd>
                <dd class="r04"><%#Eval("twoCount")%>注</dd>
                <dd class="r04"><%# bindLebelMoney(Convert.ToDecimal(Eval("twoMoney").ToString()))%> </dd>
                <dd class="r04"><%#Eval("threeCount")%>注</dd>
                <dd class="r04"><%#Eval("threeMoney")%>元</dd>
                <dd class="r05"><%# DataBinder.Eval(Container.DataItem, "openTime", "{0:yyyy-MM-dd}")%></dd>
            </dl>
        </ItemTemplate>
    </asp:Repeater>

    <div class="lottery_blank"></div>
</asp:Content>
